/**
 * CHMsgContentListener.h
 * @author Nick Kreeger <nick.kreeger@park.edu>
 *
 * Define a class to listen to message events and 
 * dispatch them to any higher UI elmements that 
 * have registered with us.
 */

// Protocol used by anyone interested in the message contents status.
@protocol CHMsgContentListener

-(void)clearMsgNotifications;
-(void)setJunkMsg;

@end

#ifndef __CHMsgContentListener_h_
#define __CHMsgContentListener_h_

#import "nsISupports.h"
#import <Cocoa/Cocoa.h>

// There might be some internal messaging listener 
// interfaces that this class should implement.

class CHMsgContentListener : public nsISupports
{
public:
  CHMsgContentListener();
  virtual ~CHMsgContentListener();
  
  NS_DECL_ISUPPORTS
    
  void AddListener(id <CHMsgContentListener> aListener);
  void RemoveListener(id <CHMsgContentListener> aListener);
  
private:
  NSMutableArray* mListeners;
};

#endif
